from django.shortcuts import render
from .serializers import AreaSerializer
from rest_framework import generics
from .models import Area


class AreaListAPI(generics.ListAPIView):
    """
    Area List Veiw
    """
    queryset = Area.objects.all()
    serializer_class = AreaSerializer
